import request from '@/plugins/request'
// 角色列表
export function roleList (data) {
  return request({
    url: "/v1/rbac/role/project-list",
    method: "get",
    params: data,
  })
}
//角色权限列表
export function roleInfo (data) {
  return request({
    url: "/v1/rbac/role/info",
    method: "get",
    params: data,
  })
}
//角色新增/编辑
export function updateRole (data) {
  return request({
    url: "/v1/rbac/role/role-add-edit",
    method: "post",
    data,
  })
}
//删除角色
export function roleDel (data) {
  return request({
    url: "/v1/rbac/role/role-del",
    method: "post",
    data,
  })
}

//集团-角色列表
export function agencyList (data) {
  return request({
    url: "/v1/rbac/role/agency-list",
    method: "get",
    params: data,
  })
}
//集团-角色新增/编辑
export function agencyUpdateRole (data) {
  return request({
    url: "/v1/rbac/role/agency-role-add-edit",
    method: "post",
    data,
  })
}

//集团-删除角色
export function agencyRoleDel (data) {
  return request({
    url: "/v1/rbac/role/agency-role-del",
    method: "post",
    data,
  })
}